//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02B
TN_Widget.CreateTable([['Our Last Night','Cathedral Theatre at the Masonic Temple','Detroit, MI','Saturday','5/11/2024','6:30 PM','6014820','Our-Last-Night-5-11-2024'],['Ancient Aliens Live','Cathedral Theatre at the Masonic Temple','Detroit, MI','Saturday','6/8/2024','7:00 PM','6266447','Ancient-Aliens-Live-6-8-2024'],['Nate Jackson','Cathedral Theatre at the Masonic Temple','Detroit, MI','Friday','6/28/2024','6:00 PM','6117616','Nate-Jackson-6-28-2024'],['Lyle Lovett and His Large Band','Cathedral Theatre at the Masonic Temple','Detroit, MI','Tuesday','7/23/2024','7:00 PM','6330100','Lyle-Lovett-and-His-Large-Band-7-23-2024'],['Idina Menzel','Cathedral Theatre at the Masonic Temple','Detroit, MI','Sunday','8/11/2024','5:30 PM','6403154','Idina-Menzel-8-11-2024'],['Iron and Wine','Cathedral Theatre at the Masonic Temple','Detroit, MI','Sunday','8/18/2024','6:00 PM','6254615','Iron-and-Wine-8-18-2024'],['Bikini Kill','Cathedral Theatre at the Masonic Temple','Detroit, MI','Saturday','8/31/2024','7:00 PM','6249698','Bikini-Kill-8-31-2024'],['Noel Miller','Cathedral Theatre at the Masonic Temple','Detroit, MI','Friday','9/13/2024','6:00 PM','6260542','Noel-Miller-9-13-2024'],['Sigur Ros','Cathedral Theatre at the Masonic Temple','Detroit, MI','Thursday','9/19/2024','7:00 PM','6298648','Sigur-Ros-9-19-2024'],['Bored Teachers Comedy Tour','Cathedral Theatre at the Masonic Temple','Detroit, MI','Sunday','9/22/2024','2:00 PM','6307146','Bored-Teachers-Comedy-Tour-9-22-2024'],['Cowboy Junkies','Cathedral Theatre at the Masonic Temple','Detroit, MI','Tuesday','9/24/2024','7:00 PM','6403254','Cowboy-Junkies-9-24-2024'],['PJ Harvey','Cathedral Theatre at the Masonic Temple','Detroit, MI','Saturday','9/28/2024','6:30 PM','6290376','PJ-Harvey-9-28-2024'],['BEAT - Belew/Vai/Levin/Carey Play 80s King Crimson','Cathedral Theatre at the Masonic Temple','Detroit, MI','Sunday','10/27/2024','6:30 PM','6360092','BEAT---Belew-Vai-Levin-Carey-Play-80s-King-Crimson-10-27-2024'],['Jessie Reyez','Cathedral Theatre at the Masonic Temple','Detroit, MI','Saturday','6/28/2070','TBD','4405171','Jessie-Reyez-6-28-2070']],'Jack White Theatre Detroit','http://www.ticketnetwork.com/ticket/Jack-White-Theatre-Detroit-events.aspx');